GtkLabel: Remove an unnecessary check
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jul 2015 22:39:14 +0000 (18:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jul 2015 22:39:14 +0000 (18:39 -0400)
Coverity has the annoying habit of guessing backwards that
if we check the value here, it might be NULL earlier.

gtk/gtklabel.c

index fd8da418660530833da9f758b03145224187289d..81e798a030207cc66b892250dce30e9332c29770 100644 (file)
@@ -5363,7 +5363,7 @@ gtk_label_create_window (GtkLabel *label)
     GDK_BUTTON_MOTION_MASK       |
     GDK_POINTER_MOTION_MASK;
   attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR;
-  if (gtk_widget_is_sensitive (widget) && priv->select_info && priv->select_info->selectable)
+  if (gtk_widget_is_sensitive (widget) && priv->select_info->selectable)
     {
       attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
                                                      GDK_XTERM);